package com.jobLink.postings.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jobLink.postings.mapper.JobPostingsMapper;
import com.jobLink.postings.domain.JobPostings;
import com.jobLink.postings.service.IJobPostingsService;

/**
 * 岗位信息Service业务层处理
 * 
 * @author dane
 * @date 2025-03-10
 */
@Service
public class JobPostingsServiceImpl implements IJobPostingsService 
{
    @Autowired
    private JobPostingsMapper jobPostingsMapper;

    /**
     * 查询岗位信息
     * 
     * @param jobId 岗位信息主键
     * @return 岗位信息
     */
    @Override
    public JobPostings selectJobPostingsByJobId(Long jobId)
    {
        return jobPostingsMapper.selectJobPostingsByJobId(jobId);
    }

    /**
     * 查询岗位信息列表
     * 
     * @param jobPostings 岗位信息
     * @return 岗位信息
     */
    @Override
    public List<JobPostings> selectJobPostingsList(JobPostings jobPostings)
    {
        return jobPostingsMapper.selectJobPostingsList(jobPostings);
    }

    /**
     * 新增岗位信息
     * 
     * @param jobPostings 岗位信息
     * @return 结果
     */
    @Override
    public int insertJobPostings(JobPostings jobPostings)
    {
        return jobPostingsMapper.insertJobPostings(jobPostings);
    }

    /**
     * 修改岗位信息
     * 
     * @param jobPostings 岗位信息
     * @return 结果
     */
    @Override
    public int updateJobPostings(JobPostings jobPostings)
    {
        return jobPostingsMapper.updateJobPostings(jobPostings);
    }

    /**
     * 批量删除岗位信息
     * 
     * @param jobIds 需要删除的岗位信息主键
     * @return 结果
     */
    @Override
    public int deleteJobPostingsByJobIds(Long[] jobIds)
    {
        return jobPostingsMapper.deleteJobPostingsByJobIds(jobIds);
    }

    /**
     * 删除岗位信息信息
     * 
     * @param jobId 岗位信息主键
     * @return 结果
     */
    @Override
    public int deleteJobPostingsByJobId(Long jobId)
    {
        return jobPostingsMapper.deleteJobPostingsByJobId(jobId);
    }
}
